/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ecom.ejb;

import ecom.entity.AccountRemote;
import ecom.entity.ProductRemote;
import ecom.entity.ProductStoreRemote;
import exceptions.IdentifiantInvalide;
import exceptions.InstanceInvalide;
import java.util.List;

/**
 *
 * @author François
 */
public interface CommonRemote {
    
    public String sayHello();

    public AccountRemote getAccount(String iban) throws IdentifiantInvalide;

    public List<AccountRemote> listAccounts();

    public ProductStoreRemote getProductStore(Long reference) throws IdentifiantInvalide;
    
    public List<ProductStoreRemote> listProductStores();

    public void updateAccount(AccountRemote Account) throws IdentifiantInvalide,
	    InstanceInvalide;

    public ProductRemote getProduct(Long reference) throws IdentifiantInvalide;

    public List<ProductRemote> listProducts();
    
}
